home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / Mac OS USB DDK / Examples / USBSampleStorageDriver / StorageClassUTDriver.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-01-12  |  2.0 KB  |  73 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        StorageClassUTDriver.h
  3.  
  4.     Contains:    This file contains all symbols that are exported to the system,
  5.                 and all Macros that are used throughout the driver.
  6.  
  7.     Version:    1.1
  8.  
  9.     Copyright:    © 1998-1999 by Apple Computer, Inc., all rights reserved.
  10.  
  11.     File Ownership:
  12.  
  13.         DRI:                Craig Keithley
  14.  
  15.         Other Contact:        xxx put other contact here xxx
  16.  
  17.         Technology:            USB Drivers
  18.  
  19.     Writers:
  20.  
  21.         (CJK)    Craig Keithley
  22.  
  23.     Change History (most recent first):
  24.  
  25.       <USB2>     1/11/99    CJK        update to use sources from 1.1f3 DDK
  26. */
  27.  
  28. #ifndef __STORAGECLASSUTDRIVER__
  29. #define __STORAGECLASSUTDRIVER__
  30.  
  31. #include <DriverServices.h>
  32.  
  33. //------------------------------------------------------------------------------
  34. //    Debugging Macros-
  35. //    This will turn DebugStr's on and off throughout the driver
  36. //----------------------------------------------------------------------------------
  37. #ifndef Include_Debugging
  38.     #define Include_Debugging 0            // Set to 1 to enable debugging
  39. #endif
  40.  
  41. #if Include_Debugging
  42.     #define IfDebugging(str)    SysDebugStr(str)
  43. #else
  44.     #define IfDebugging(str)
  45. #endif
  46.  
  47. //----------------------------------------------------------------------------------
  48. //    The Driver Description structure -
  49. //     This structure provides the Device Manager with information about our native driver
  50. //----------------------------------------------------------------------------------
  51.  
  52. extern DriverDescription TheDriverDescription;
  53.  
  54.  
  55. //----------------------------------------------------------------------------------
  56. //    The DoDriverIO Function -
  57. //     This function is the only entry to our driver from the Device Manager
  58. //----------------------------------------------------------------------------------
  59.  
  60. extern OSStatus DoDriverIO(    AddressSpaceID        addressSpaceID,
  61.                             IOCommandID            ioCommandID,
  62.                             IOCommandContents    ioCommandContents,
  63.                             IOCommandCode        ioCommandCode,
  64.                             IOCommandKind        ioCommandKind );
  65.  
  66.  
  67.  
  68. extern OSStatus FinishCommandProcessing(     IOCommandID ioCommandID,
  69.                                             IOCommandKind ioCommandKind,
  70.                                             OSStatus incomingStatus );
  71.  
  72. #endif /* __STORAGECLASSUTDRIVER__ */
  73.